//
//  CWCRightImgCell.m
//  ChuanNews
//
//  Created by dllo on 16/4/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CWCRightImgCell.h"
#import "BaseHeader.h"
@implementation CWCRightImgCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageViewA = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imageViewA];
        
        self.imageViewB = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imageViewB];
        
        self.imageViewC = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imageViewC];
        
        self.titleLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
        
        [self jxl_setDayMode:^(UIView *view) {
            CWCRightImgCell *cell = (CWCRightImgCell *)view;
            cell.backgroundColor = [UIColor whiteColor];
            cell.contentView.backgroundColor = [UIColor whiteColor];
            cell.titleLabel.backgroundColor = [UIColor whiteColor];
            cell.titleLabel.textColor = [UIColor blackColor];
            
        } nightMode:^(UIView *view) {
            CWCRightImgCell *cell = (CWCRightImgCell *)view;
            cell.backgroundColor = [UIColor blackColor];
            cell.contentView.backgroundColor = [UIColor blackColor];
            cell.titleLabel.backgroundColor = [UIColor blackColor];
            cell.titleLabel.textColor = [UIColor whiteColor];
            }];

    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageViewA.frame = CGRectMake(5, 0, 240, 170);
    self.imageViewB.frame = CGRectMake(245, 0, WIDTH - 250, 82.5);
    self.imageViewC.frame = CGRectMake(245, 87.5, WIDTH - 250, 82.5);
    self.titleLabel .frame = CGRectMake(0, 175, WIDTH - 10, 25);
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
